package io.github.tangwan;

import org.springframework.boot.DefaultApplicationArguments;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.SpringCloudApplication;

/**
 * @author tangwan
 * @version V1.0
 * @since JDK 1.8
 * created on 2021/6/13 15:49
 */
@SpringBootApplication
@SpringCloudApplication
public class MyBatisPlusApplication {

    /**
     * springboot三种方式传递参数
     * java -jar xxx.jar --xxx=test   # 由springboot获取main函数参数解析得到,具体看
     * @see DefaultApplicationArguments 的new Source(args) ==> super(args) ==> SimpleCommandLineArgsParser ==> parse(args)
     * java -jar xxx.jar aaa bbb ccc  # 由springboot获取main函数参数解析得到
     * java -Dxxx=test -jar xxx.jar   # JVM参数
     *
     * @param args
     */
    public static void main(String[] args) {
        SpringApplication.run(MyBatisPlusApplication.class, args);
    }

}
